/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.customer.impt;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.server.common.persistence.DataEntity;
import com.server.common.utils.excel.annotation.ExcelField;

/**
 * 客户导入Entity
 * @author 丁光彪
 * @version 2016-10-28
 */
public class CustomerImport extends DataEntity<CustomerImport> {
	
	private static final long serialVersionUID = 1L;
	protected String name;		// name
	protected String gender;		// 性别
	protected String mobile;		// 手机号
	protected String tel;		// 座机
	protected String company;		// 公司名
	protected String post;		// 职务
	protected String addr;		// 地址
	protected String housePropertyInfo;		// 房产信息
	protected String household;		// 户型
	protected String carInfo;		// 车辆信息
	protected String plateno;		// 车牌
	protected String platenoRegTime;		// 车辆上牌时间
	protected String type;		// 数据类型 1.车辆信息 2.房产信息 3.其他（即车辆或房产信息不全的）
	protected String batchNo;		// 导入批次
	
	public CustomerImport() {
		super();
	}

	public CustomerImport(String id){
		super(id);
	}

	@Length(min=0, max=64, message="name长度必须介于 0 和 64 之间")
	@ExcelField(title="姓名", align=2, sort=1)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
	@Length(min=0, max=255, message="手机号长度必须介于 0 和 255 之间")
	@ExcelField(title="手机", align=2, sort=2)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=32, message="座机长度必须介于 0 和 32 之间")
	@ExcelField(title="座机", align=2, sort=3)
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	@Length(min=0, max=64, message="公司名长度必须介于 0 和 64 之间")
	@ExcelField(title="公司名称", align=2, sort=4)
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@Length(min=0, max=64, message="职务长度必须介于 0 和 64 之间")
	@ExcelField(title="职务", align=2, sort=5)
	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}
	
	@Length(min=0, max=255, message="地址长度必须介于 0 和 255 之间")
	@ExcelField(title="地址", align=2, sort=6)
	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}
	
	@Length(min=0, max=255, message="房产信息长度必须介于 0 和 255 之间")
	@ExcelField(title="房产信息", align=2, sort=7)
	public String getHousePropertyInfo() {
		return housePropertyInfo;
	}

	public void setHousePropertyInfo(String housePropertyInfo) {
		this.housePropertyInfo = housePropertyInfo;
	}
	
	@Length(min=0, max=64, message="户型长度必须介于 0 和 64 之间")
	@ExcelField(title="户型", align=2, sort=8)
	public String getHousehold() {
		return household;
	}

	public void setHousehold(String household) {
		this.household = household;
	}
	
	@Length(min=0, max=255, message="车辆信息长度必须介于 0 和 255 之间")
	@ExcelField(title="车辆信息", align=2, sort=9)
	public String getCarInfo() {
		return carInfo;
	}

	public void setCarInfo(String carInfo) {
		this.carInfo = carInfo;
	}
	
	@Length(min=0, max=16, message="车牌长度必须介于 0 和 16 之间")
	@ExcelField(title="车牌", align=2, sort=10)
	public String getPlateno() {
		return plateno;
	}

	public void setPlateno(String plateno) {
		this.plateno = plateno;
	}
	
	@ExcelField(title="上牌时间", align=2, sort=11)
	public String getPlatenoRegTime() {
		return platenoRegTime;
	}

	public void setPlatenoRegTime(String platenoRegTime) {
		this.platenoRegTime = platenoRegTime;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="导入批次长度必须介于 0 和 64 之间")
	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}
	
}